import { createApp } from 'vue'
import App from './App.vue'
import {createPinia} from 'pinia'

const store = createPinia()


// 2.引入mitt
import mitt from 'mitt'
// 兄弟组件传值
// 1.安装npm i mitt -S
// 3.挂载全局
const Mit = mitt()
const app =createApp(App)
declare module 'vue' {
    export interface ComponentCustomProperties{
        $Bus:typeof Mit
    }
}
app.config.globalProperties.$Bus =Mit
app.use(store)
app.mount('#app')